package com.example.javaserve.service;

import com.example.javaserve.dto.AuthUserDto;
import com.example.javaserve.dto.AuthUserLoginDto;
import com.example.javaserve.result.Result;

public interface AuthService {
    Result sendMailCode(String email);

    /**
     * 注册
     *
     * @param authUserDto 认证用户请求信息
     * @return 是否成功
     */
    Result register(AuthUserDto authUserDto);

    Result login(AuthUserLoginDto authUserLoginDto);
}
